package com.jeesite.modules.general.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * @author Mr Wu
 * @date 2023/12/7
 */
@Table(name="js_sys_user", alias="a", label="用户信息", columns={
        @Column(name="user_code", attrName="userCode", label="用户编码", isPK=true),
        @Column(name="login_code", attrName="loginCode", label="登陆账号"),
        @Column(name="user_name", attrName="userName", label="用户昵称", queryType= QueryType.LIKE),
        @Column(name="password", attrName="password", label="登录密码"),
        @Column(name="email", attrName="email", label="邮箱"),
        @Column(name="mobile", attrName="mobile", label="手机号码"),
        @Column(name="sex", attrName="sex", label="用户性别"),
        @Column(name="avatar", attrName="avatar", label="用户头像"),
        @Column(name="user_type", attrName="userType", label="用户类型"),
}, orderBy="a.user_code DESC"
)
public class UserInfo extends DataEntity<UserInfo> {
    private String userCode;   // 用户编码
    private String loginCode;  // 登陆账号
    private String userName;   // 用户昵称
    private String password;   // 登录密码
    private String email;      // 邮箱
    private String mobile;     // 手机号码
    private String sex;        // 用户性别
    private String avatar;     // 用户头像
    private String userType;   // 用户类型

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getLoginCode() {
        return loginCode;
    }

    public void setLoginCode(String loginCode) {
        this.loginCode = loginCode;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }
}
